import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import Login from '@/components/Login'
import Wating from '@/components/Wating'
import BindUser from '@/components/BindUser'
import Register from '@/components/Register'
import CateAdd from '@/backend/CateAdd'
import GoodsAdd from '@/backend/GoodsAdd'
import Detail from '@/components/Detail'

import Login1 from '@/week/Login'
import CourseList from '@/week/CourseList'
import StudentList from '@/week/StudentList'
import Tab from '@/components/Tab'
import Cart from '@/components/Cart'
import Order from '@/components/Order'
import AddAddress from '@/components/AddAddress'

Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [{
            "path": "/student",
            name: StudentList,
            component: StudentList,
        }, {
            "path": "/course",
            name: CourseList,
            component: CourseList,
        }, {
            "path": "/login1",
            name: Login1,
            component: Login1,
        },
        {
            path: '/',
            name: 'Index',
            component: Index
        },
        {
            path: '/login',
            name: 'Login',
            component: Login
        },
        {
            path: '/wb',
            name: 'Wating',
            component: Wating
        },
        {
            path: '/bind',
            name: 'BindUser',
            component: BindUser
        },
        {
            path: '/register',
            name: 'Register',
            component: Register
        },
        {
            path: '/cateadd',
            name: 'CateAdd',
            component: CateAdd
        }, {
            path: "/goodsadd",
            name: GoodsAdd,
            component: GoodsAdd
        }, {
            path: "/detail",
            name: Detail,
            component: Detail
        }, {
            path: "/tab",
            name: Tab,
            component: Tab
        }, {
            path: "/cart",
            name: Cart,
            component: Cart
        }, {
            path: "/order",
            name: Order,
            component: Order
        }, {
            path: "/addaddress",
            name: AddAddress,
            component: AddAddress
        }
    ]
})